package peer.p2pnet;

import java.net.InetAddress;

import peer.tools.Mdb;


public class DBNode {
	public InetAddress ip;
	public int AssistServerPort;
	public int DBServerPort;
	public boolean isCast=false;
	public int sourceNum=0;
	public int routePort=0;
	Mdb mdb;
	public DBNode(Mdb mdb,InetAddress ip,int DBServerPort){
		this.ip=ip;
		this.DBServerPort=DBServerPort;
		this.mdb=mdb;
	}
	public InetAddress getIp(){
		return ip;
	}
	public int getPort(){
		return DBServerPort;
	}
	
	public String toString(){
		return ip.toString()+":"+DBServerPort;
	}
}
